package com.cskaoyan.catmall.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 创建日期: 2022-01-07-16-20
 * author : LL
 * description: 推广商品vo
 */
@NoArgsConstructor
@Data
public class PromotionGoodsListVo {

    private Integer id;
    private String goodsSn;
    private String name;
    private Integer categoryId;
    private Integer brandId;
    private String[] gallery;
    private String keywords;
    private String brief;
    private Boolean isOnSale;
    private Integer sortOrder;
    private String picUrl;
    private String shareUrl;
    private Boolean isNew;
    private Boolean isHot;
    private String unit;
    private Integer counterPrice;
    private Integer retailPrice;
    private String addTime;
    private String updateTime;
    private Boolean deleted;
    private String detail;

    private Integer deletedNum;

    public void setDeletedNum(Integer deletedNum) {
//        this.deletedNum = deletedNum;
        if (deletedNum == 0){
            this.deleted = false;
        }else this.deleted = true;
    }
}